package com.hong.serviceorder.utils;

public class HttpClientBuilder {
    HttpClient httpClient;
    public HttpClientBuilder(String url){
        httpClient=new HttpClient(url);
    }
    public HttpClientBuilder setHttps(boolean isHttps) {
        httpClient.setHttps(isHttps);
        return this;
    }
    public HttpClientBuilder setCert(boolean cert) {
        httpClient.setCert(cert);
        return this;
    }
    public HttpClient build(){
        return httpClient;
    }
    public HttpClientBuilder setXmlParam(String xmlParam) {
        httpClient.setXmlParam(xmlParam);
        return this;
    }
    public HttpClientBuilder setCertPassword(String certPassword) {
        httpClient.setCertPassword(certPassword);
        return this;
    }
}
